
   <#include "head.ftl">
<div class="container-wrap" style='background:#fff;width:98%'>

		<div class="row copyright" >
			<div class="col-md-12 " style='text-align:center;margin-top:20px;width:90%;border-bottom:1px solid #BFBFBF;margin:auto;padding-top:10px;margin-bottom:12px;'>
				<big style='padding-bottom:6px;color:#272727;font-size:18px;font-weight:500;'>${result.title}</big>
				<p style='text-align:right;margin-top:8px;margin-right:2%;font-size:14px;'>发表日期：${result.cdate}</p>
			</div>
		</div>

</div><!-- END container-wrap -->
	<div class="container-wrap">
		<div id="fh5co-contact">
			${result.msg}
			<p class='more_btn'><a 	href="javascript:history.go(-1)" class='more_text'>返回</a></p>
  </div>
	
	</div><!-- END container-wrap -->
	
	 
   <#include "foot.ftl">
<script>
    $('#submit').click(function () {
        var username = $("input[name=username]").val();
        var password = $("input[name=password]").val();
        if(!username || !password){
            alert('所有字段不能为空');
            return false;
        }
        $.ajax({
            type:'POST',
            url:'${Domain.base}/api/oauth/login',
            dataType:'json',
            data:{username:username,password:password},
            success:function (response) {
                if(response.status){
                    window.location.href = '${Domain.base}/admin';
                }else {
                    alert('登录失败,请仔细检查账号和密码');
                    return false;
                }
            },
            error:function (response) {
                alert('发生未知错误，请稍后再尝试');
            }
        });
    });
</script>